/**
 * 卡片配置
 * 用户管理 role-manage
 */
export default {
  'role-manage': {
    cardName: '角色管理',
    cardType: 'TableCard',
    // 是否树状
    isTree: true,
    // 是否树状配置
    treeConfig: {
      id: 'id',
      parentId: 'parentId',
      childrenKey: 'children'
    },
    // 是否默认展开所有
    defaultExpandAll: true,
    // 是否不需要表格斑马线
    isNotStripe: true,
    moduleBtnList: [
      {
        label: '新增',
        icon: 'el-icon-plus',
        type: 'primary',
        id: 'role-manage-add',
        authId: 'grass-core:role:add'
      },
      {
        label: '导出',
        icon: 'el-icon-download',
        id: 'role-manage-export',
        authId: 'grass-core:role:export',
        downType: 'downloadFile',
        downPath: '/energy-carbon/grass-core/role/export'
      },
      {
        label: '批量删除',
        type: 'danger',
        plain: true,
        icon: 'el-icon-delete',
        id: 'role-manage-deleteBatch',
        authId: 'grass-core:role:batchDelete'
      },
      {
        label: '展开列表',
        type: 'default',
        icon: 'el-icon-s-unfold',
        clickType: 'expand-retract-table',
        id: 'table-expand'
      },
      {
        label: '收起列表',
        type: 'default',
        icon: 'el-icon-s-fold',
        clickType: 'expand-retract-table',
        id: 'table-retract'
      }
    ],
    dataType: 'table',
    mainClass: 'main-padding20',
    path: 'roleManage.queryList',
    isMultiple: true,
    id: 'role-manage'
  }
}
